﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Packets
{
    public class PlayerRemovedPacket : PlayerPacket
    {
        public PlayerRemovedPacket()
            : base(PacketType.PlayerRemoved)
        {

        }

        public PlayerRemovedPacket(PlayerBase player)
            : this()
        {
            _id = player.ID;
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            base.Read(reader);
            _id = reader.ReadInt32();
        }

        public override void Write(System.IO.BinaryWriter writer)
        {
            base.Write(writer);
            writer.Write(_id);
        }
    }
}
